package com.luoqiz.project.screenBroadcard.client;

public class ScreenDataInfo {
	private long tiemstamp;
	private int packageCount;
	private int packageIndex;
	private byte[] content;
	public long getTiemstamp() {
		return tiemstamp;
	}
	public void setTiemstamp(long tiemstamp) {
		this.tiemstamp = tiemstamp;
	}
	public int getPackageCount() {
		return packageCount;
	}
	public void setPackageCount(int packageCount) {
		this.packageCount = packageCount;
	}
	public int getPackageIndex() {
		return packageIndex;
	}
	public void setPackageIndex(int packageIndex) {
		this.packageIndex = packageIndex;
	}
	public byte[] getContent() {
		return content;
	}
	public void setContent(byte[] content) {
		this.content = content;
	}
	@Override
	public boolean equals(Object obj) {
		if(this==obj) {
			return true;
		}
		if(obj!=null &&(obj.getClass().isInstance(this.getClass()))) {
			ScreenDataInfo srdi=(ScreenDataInfo)obj;
			if(srdi.getTiemstamp()!=this.getTiemstamp()) {
				return false;
			}
			if(srdi.getPackageIndex()!=this.getPackageIndex()) {
				return false;
			}
			return true;
		}
		return false;
	}
}
